using Cirrious.MvvmCross.Binding.Droid.Views;
using Cirrious.MvvmCross.Interfaces.ViewModels;
using TeaLightV5.Foundation.UX.ViewModels;

namespace Conference.UX.DroidPhone.Views
{
    public abstract class EntityView<TViewModel>
        : MvxBindingActivityView<TViewModel>
        where TViewModel : class, IMvxViewModel
    {
        protected override void OnStart()
        {
            base.OnStart();

            EntityViewModel baseViewModel = ViewModel as EntityViewModel;
            if (baseViewModel != null)
            {
                baseViewModel.ReloadModel();
            }
        }
    }
}